package com.wsq.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//消费者 运行方式80可省略  例：localhost/consumer/dept/list
@SpringBootApplication(scanBasePackages = "com.wsq.springcloud")
@EnableEurekaClient//在服务启动后，自动注册到Eureka注册中心中
@EnableFeignClients(basePackages = {"com.wsq.springcloud"}) //Feign被扫描到
public class FeignDeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignDeptConsumer_80.class, args);
    }
}